# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py3-coverage
pkgver=5.2.1
pkgrel=0
pkgdesc="Code coverage measurement for Python"
options="!check" # Requires unpackaged 'flaky'
url="https://pypi.python.org/pypi/coverage"
arch="all"
license="Apache-2.0"
makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/c/coverage/coverage-$pkgver.tar.gz"
builddir="$srcdir/coverage-$pkgver"

replaces="py-coverage" # Backwards compatibility
provides="py-coverage=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="bda6129a4f4e2db3d26878036ceec137e4f359b8d37ce087e4007751bf0bbda7d706967a50b120378fa533f980e70142328099332374a1f303fa0083ffc078b0  coverage-5.2.1.tar.gz"
